package org.xielei.designpatterns.behavioral.observer;

import java.util.Observable;

/**
 * ConcreteTargetTwo
 *
 * @author xielei
 * @date 2020/8/6
 */
public class ConcreteTargetTwo extends Observable {

    public ConcreteTargetTwo() {
        addObserver(new ObserverTwo());
        addObserver(new ObserverThree());
    }

    void notifyTwoAndThree() {
        super.setChanged();
        super.notifyObservers();
    }
}
